package com.eonmind.common.provider.entity.pay;

import com.mongoplus.annotation.ID;
import com.mongoplus.annotation.collection.CollectionName;
import com.mongoplus.annotation.index.MongoIndex;
import com.mongoplus.enums.IdTypeEnum;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.FieldNameConstants;

/**
 * @ClassName Cart
 * @Description TODO
 * Author 32004
 * Date 2025/5/20 14:41
 * Version 1.0
 **/

@Data
@CollectionName("cart")
@FieldNameConstants
@ToString
public class Cart {

    //购物车ID
    @ID(type = IdTypeEnum.AUTO)
    private Long id;

    @MongoIndex
    private Long userId;

    private Long productId;

    private Integer count;

    //支付状态
    @MongoIndex
    private Integer status;

    private Long createTime;

    private Long updateTime;

    @MongoIndex
    private Long orderId;

    private Integer del;

}
